from django.urls import path, include

from . import views

app_name = 'review'
urlpatterns = [
    # /review/index/
    path('index/', views.index, name='index'),
    # /review/userinfo/create
    path(
        'userinfo/',
        views.review_user_info_view,
        name='userinfo'
    ),
    # /review/userinfo
    path(
        'userinfo-detail/',
        views.ReviewUserInfoDetailView.as_view(),
        name='userinfo-detail'
    ),
    # /review/userinfo/create
    path(
        'userinfo/create/',
        views.ReviewUserInfoFormCreateView.as_view(),
        name='userinfo-create'
    ),
    # /review/userinfo/update
    path(
        'userinfo/update/',
        views.ReviewUserInfoFormUpdateView.as_view(),
        name='userinfo-update'
    ),
    # /review/profile-list
    path(
        'profile-list/',
        views.ReviewProfileListView.as_view(),
        name='profile-list'
    ),
    # /review/profile/create
    path(
        'profile/create/',
        views.ReviewProfileFormCreateView.as_view(),
        name='profile-create'
    ),
    # /review/profile/x/update
    path(
        'profile/<int:pk>/update/',
        views.ReviewProfileFormUpdateView.as_view(),
        name='profile-update'
    ),
    # /review/profile/x/delete
    path(
        'profile/<int:pk>/delete/',
        views.ReviewProfileFormDeleteView.as_view(),
        name='profile-delete'
    ),
    # /review/presetting/
    path(
        'create/presetting/',
        views.review_create_presetting_view,
        name='create-presetting'
    ),
    # /review/create/<review_num>/
    path(
        'create/<int:review_num>/',
        views.review_form_create_view,
        name='create'
    ),
    # /review/public/<review_group_id>/
    path(
        'public/<int:group_id>/',
        views.review_form_public_view,
        name='public'
    ),
    # /review/x/update
    path(
        '<int:pk>/update/',
        views.ReviewFormUpdateView.as_view(),
        name='update'
    ),
    path(
        'list/',
        views.ReviewFormListView.as_view(),
        name='list'
    ),
    path(
        '<int:pk>/push/',
        views.review_push_view,
        name='push'
    )
    # path(
    #     'create/',
    #     views.ReviewFormCreateView.as_view(),
    #     name='create'
    # ),
    # path(
    #     'list/',
    #     views.ReviewFormListView.as_view(),
    #     name='list'
    # ),
]
